package cn.itsource.ymcc.openfeign;

import cn.itsource.ymcc.result.JsonResult;
import cn.itsource.ymcc.openfeign.factory.UserOpenfeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-user",fallbackFactory = UserOpenfeignFallbackFactory.class)
public interface UserOpenfeign {
    @GetMapping("/user/{id}")
    public JsonResult get(@PathVariable("id")Long id);
}
